mtd: Disable slram and phram when securelevel is enabled
authorBen Hutchings <ben@decadent.org.uk>
Thu, 2 Jun 2016 23:48:39 +0000 (00:48 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Thu, 12 Jan 2017 15:52:37 +0000 (15:52 +0000)
commitca447be7e69d44f9dfbb4656b9ecaccba4a5387d
treeafdf2389d8acf79c3e05ced7423a53dcfd986fdb
parenta31f373f503a2b7cc7957bbf6ce27a814c401480
mtd: Disable slram and phram when securelevel is enabled

The slram and phram drivers both allow mapping regions of physical
address space such that they can then be read and written by userland
through the MTD interface.  This is probably usable to manipulate
hardware into overwriting kernel code on many systems.  Prevent that
if securelevel is set.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Gbp-Pq: Topic features/all/securelevel
Gbp-Pq: Name mtd-disable-slram-and-phram-when-securelevel-is-enabled.patch
drivers/mtd/devices/phram.c
drivers/mtd/devices/slram.c